package com.cqsw.bbs.mapper;

import com.cqsw.bbs.entity.Comment;
import com.cqsw.bbs.entity.Pagination;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    List<Comment> queryComment(@Param("type")Integer type,@Param("commentObjectId")Integer commentObjectId ,@Param("page")Integer page,@Param("count")Integer count);
    int queryCommentCount(@Param("type")Integer type,@Param("commentObjectId")Integer commentObjectId);
    int insertComment(@Param("userId")Integer userId,@Param("type")Integer type,@Param("commentObjectId")Integer commentObjectId ,@Param("commentContent") String commentContent);
    List<Comment> queryMyComment(Pagination pagination);
    List<Comment> queryMyCommentReply(Pagination pagination);
}